package com.zhangbaiyan.dengdai;

/**
 * @author zhangbaiyan
 * @date 2024-09-24 19:31
 * @description:
 * @version:
 */
public class test {
    public static void main(String[] args) {
        /*
        *
        *   需求:完成生产者和消费者(等待唤醒机制)的代码
        *       实现线程轮流交替执行的效果
         */
        Desk desk = new Desk();

        Cook cook = new Cook();
        Foodie foodie = new Foodie();

        cook.setName("厨师");
        foodie.setName("吃货");

        cook.start();
        foodie.start();
    }
}
